package com.fjp.heartguard.viewmodel

import androidx.lifecycle.MutableLiveData
import com.fjp.heartguard.app.base.HTBaseViewModel
import com.fjp.heartguard.app.data.bean.AppVersion
import com.fjp.heartguard.app.network.HttpRequestCoroutine
import me.hgj.jetpackmvvm.ext.request
import me.hgj.jetpackmvvm.state.ResultState

/**
 *Author:Mr'x
 *Time:2025/1/13
 *Description:
 */
class CheckVersionViewModel : HTBaseViewModel() {
    var appVersion = MutableLiveData<ResultState<AppVersion>>()
    fun checkVersion() {
        request({
            HttpRequestCoroutine.checkVersion()
        }, appVersion, false)

    }
}